# Contributor: Shiz <hi@shiz.me>
# Maintainer: Shiz <hi@shiz.me>
pkgname=gpg-remailer
pkgver=3.04.05
pkgrel=0
pkgdesc="Decrypt GPG messages and re-encrypt them to a well-defined group"
url="https://gitlab.com/fbb-git/gpg-remailer"
arch="all !s390x" # limited by mailutils
license="GPL-3.0-or-later"
depends="gnupg mailutils"
makedepends="icmake bash yodl bobcat-dev"
subpackages="$pkgname-doc"
source="https://gitlab.com/fbb-git/gpg-remailer/-/archive/$pkgver/gpg-remailer-$pkgver.tar.gz"
builddir="$srcdir/gpg-remailer-$pkgver/gpg-remailer"

build() {
	./build program strip
	./build man
}

check() {
	./tmp/bin/binary --version
}

package() {
	./build install bm "$pkgdir"
	# remove HTML documentation.
	rm -rf "$pkgdir"/usr/share/doc
}

sha512sums="c3bffe98077131599484c3ea847aeecad4e3e057d69979134bf62347f792473ad8ac1b39076abc5e981745f47b03090172213942ef2de71b365cf780d42601c7  gpg-remailer-3.04.05.tar.gz"
